$(function(){
			var t=0;
			var p=0;
			var $jianti=$('.jianti'),
			    $fanti=$('.fanti'),
			    $lunbo=$('#beauty2_content .beauty-2-group .list-7 li');
			    $jianti.one('click',jianti );
			    function jianti(){
			    	window.location.href="index.html";
			    	$jianti.one('click',jianti);
			    }
			    $fanti.one('click',fanti );
			    function fanti(){
			    	window.location.href="index2.html";
			    	$fanti.one('click',fanti);
			    }
			    function run(){
			    	Play=setInterval(function(event){
                      p++;
                     if(p<6){
			    	$('#beauty2_content .beauty-2-group .larg'+(p+1)).fadeIn(3000).siblings("div").fadeOut("slow");
			    	$lunbo.eq(p).addClass('li-active').siblings().removeClass('li-active');
			    	     if(p==5){p=-1};
                         }else{
                            p=-1;
                         }
			    },5000);
			    }
			    run();
			     $lunbo.hover(function(event){
                       clearInterval(Play);
                       },function(){
                                 run();
                       });
			    $lunbo.hover(function() {
			    	p=$(this).index();
			    	$('#beauty2_content .beauty-2-group .larg'+(p+1)).show().siblings("div").hide();
			    	$lunbo.eq(p).addClass('li-active').siblings().removeClass('li-active');
			    });

		});